Ext.namespace("dept.plan.Main");

tabPanelTabIndex = {
	"toimp" : 0,
	"toimportant" : 1,
	"tofeedback" : 2,
	"tofulfill" : 3,
	"search" : 4
};


dept.plan.Main = function() {
	var plan;
	var tabPanelTabs = [];
	var opentab = Utils.getParameter('opentab');
	if (!opentab) opentab = "toimp";
	//1本月营业厅经营情况分析
	tabPanelTabs.push(new DeptPlan.Edit());	
	//2本月主要工作总结
	tabPanelTabs.push(new DeptPlan.Edit());	
	//3竞争对手信息
	tabPanelTabs.push(new DeptPlan.Edit());
	//4存在问题及困难
	tabPanelTabs.push(new DeptPlan.Edit());
	//5下月工作努力方向及计划
	tabPanelTabs.push(new DeptPlan.Edit());
	
	plan = new Ext.TabPanel({
		region: 'center',
		activeTab: tabPanelTabIndex[opentab],
		items: tabPanelTabs
	});
	
	dept.plan.Main.superclass.constructor.call(this,{
		title: '任务反馈信息',
        width: 550,
        height:420,
        resizable: true,
        autoScroll: true,
        layout:'border',
        frame:true,
        closeAction: 'hide',
        items: [plan],
        buttons: [new Ext.Button({text:'关闭',scope:this,handler:function(){this.hide()}})],
        buttonAlign:'center'
	});
};
Ext.extend(dept.plan.Main,Ext.Window,{
	initDetail:function(){

	}
});